window.onload = function(){
	//获取海报信息并显示在页面上
	var img = getUrl('posterimg');
	var mname = decodeURIComponent(getUrl('mname'));
	showPoster(img,mname);
	//显示公告
	var json2 = {
		instruct:"takeNoticeMsgInMidRight"
	}
	goAjax(json2);
	//判断是否已经登录
	checkLogined();
}

//获取 url 后的参数值
function getUrl(para){
    var paraArr = location.search.substring(1).split('&');
    for(var i = 0;i < paraArr.length;i++){
        if(para == paraArr[i].split('=')[0]){
            return paraArr[i].split('=')[1];
        }
    }
    return '';
}

function showPoster(img,mname){
	//alert("img="+img+",mname="+mname);
	var jieshao = document.getElementById('jieshao');
	jieshao.innerHTML="<p>"+
		"<img src=\""+img+"\" />"+
        	"</p>"+
        	"<p>"+mname+"</p>"
}